package org.rapan;

import org.rapan.jpa.Consultant;

import com.vaadin.terminal.ThemeResource;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.Embedded;
import com.vaadin.ui.GridLayout;

@SuppressWarnings("serial")
public class LogoLayout extends GridLayout {

	public LogoLayout(Consultant c) {

		setSpacing(false);

		setRows(1);
		setColumns(2);

		setSizeFull();

		UserLogoLayout u_l = new UserLogoLayout(c);
		addComponent(u_l, 1, 0);
		setComponentAlignment(u_l, Alignment.MIDDLE_RIGHT);
		u_l.setWidth("150px");
	}

	@Override
	public void attach() {
		Embedded image = new Embedded("", new ThemeResource("pasoft_logo.png"));
		addComponent(image, 0, 0);
	}
}
